home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / CODING / GRAPHICS / NANOTECH.ZIP / KEYBOARD.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-28  |  1.9 KB  |  85 lines

  1. /*
  2.  
  3. NanoTech - a 3d game engine
  4. Copyright (C) 1996  Sean Lane Fuller
  5.  
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU General Public License
  8. as published by the Free Software Foundation; either version 2
  9. of the License, or (at your option) any later version.
  10.  
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14. GNU General Public License for more details.
  15.  
  16. You should have received a copy of the GNU General Public License
  17. along with this program; if not, write to the Free Software
  18. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  
  20. Sean Lane Fuller
  21. 124 Autumn Lane
  22. Tullahoma, TN 37388
  23. 615-393-4550
  24. email: fuller@edge.net
  25.  
  26. */
  27.  
  28. #ifndef __KEYBRD_H
  29.  
  30. #define __KEYBRD_H
  31.  
  32. #define KB_A 30
  33. #define KB_B 48
  34. #define KB_C 46
  35. #define KB_D 32
  36. #define KB_E 18
  37. #define KB_F 33
  38. #define KB_G 34
  39. #define KB_H 35
  40. #define KB_I 23
  41. #define KB_J 36
  42. #define KB_K 37
  43. #define KB_L 38
  44. #define KB_M 50
  45. #define KB_N 49
  46. #define KB_O 24
  47. #define KB_P 25
  48. #define KB_Q 16
  49. #define KB_R 19
  50. #define KB_S 31
  51. #define KB_T 20
  52. #define KB_U 22
  53. #define KB_V 47
  54. #define KB_W 17
  55. #define KB_X 25
  56. #define KB_Y 21
  57. #define KB_Z 44
  58. #define PGUP 73
  59. #define PGDN 81
  60. #define F1              59        
  61. #define UP              72
  62. #define DOWN            80
  63. #define LEFT            75
  64. #define RIGHT           77
  65. #define TAB             15
  66. #define ESC             1
  67. #define CTRL            29
  68. #define ALT             56
  69. #define SPACE           57
  70. #define MINUS           12
  71. #define PLUS            13
  72. #define INS             82
  73. #define DEL             83
  74. #define PAUSED          84
  75. #define L_SHIFT         42
  76. #define R_SHIFT         54
  77.  
  78. void    InitKey();
  79. void    UninstallKey();
  80.  
  81. extern volatile char  key;
  82. extern volatile char  keys[128];
  83.  
  84. #endif
  85.